package com.gdcnano.nanoamp.media.sound.playlist
{
    import com.gdcnano.libs.xspf4x.XSPFTrack;
    
    
    /**
     * Wrapper class for the XSPFTrack which implements ITrack interface 
     * @author gareevm
     * 
     */
    public class XSPFiTrack implements ITrack
    {
        
        private var _xspfTrack:XSPFTrack;
        
        
        public function XSPFiTrack(xspfTrack:XSPFTrack)
        {
            _xspfTrack = xspfTrack;
        }
        
        
        public function get album():String
        {
            return _xspfTrack.album;
        }
        
        
        public function get artist():String
        {
            return _xspfTrack.creator;
        }
        
        
        public function get location():String
        {
            return _xspfTrack.location;
        }
        
        
        public function get name():String
        {
            return _xspfTrack.title;
        }
    }
}